home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Item MB Quick & Easy 2.0
/
Item MB Quick & Easy 2.0.iso
/
mbfacad
/
eaitset.lsp
< prev
next >
Wrap
Text File
|
1998-03-15
|
6KB
|
97 lines
;SETUP
(defun EAITset ( / )
;ACAD-Befehle -> Sprache
(load (strcat EAITpfn "EAIT_bef"))
;alte Zeichnungen konvertieren
(if (tblsearch "BLOCK" "AIT$INFO")
(progn
;Layer
(if (and (not (tblsearch "layer" "EAIT25")) (tblsearch "layer" "AIT$25")) (command EAITumb EAITumla "AIT$25" "EAIT25"))
(if (and (not (tblsearch "layer" "EAIT35")) (tblsearch "layer" "AIT$35")) (command EAITumb EAITumla "AIT$35" "EAIT35"))
(if (and (not (tblsearch "layer" "EAIT50")) (tblsearch "layer" "AIT$50")) (command EAITumb EAITumla "AIT$50" "EAIT50"))
(if (and (not (tblsearch "layer" "EAITgstr")) (tblsearch "layer" "AIT$gstr")) (command EAITumb EAITumla "AIT$gstr" "EAITgstr"))
(if (and (not (tblsearch "layer" "EAITgstrg")) (tblsearch "layer" "AIT$gstrg")) (command EAITumb EAITumla "AIT$gstrg" "EAITgstrg"))
(if (and (not (tblsearch "layer" "EAIThilfe")) (tblsearch "layer" "AIT$hilfe")) (command EAITumb EAITumla "AIT$hilfe" "EAIThilfe"))
(if (and (not (tblsearch "layer" "EAITinfo")) (tblsearch "layer" "AIT$info")) (command EAITumb EAITumla "AIT$info" "EAITinfo"))
(if (and (not (tblsearch "layer" "EAITstp")) (tblsearch "layer" "AIT$stp")) (command EAITumb EAITumla "AIT$stp" "EAITstp"))
(if (and (not (tblsearch "layer" "EAITstpg")) (tblsearch "layer" "AIT$stpg")) (command EAITumb EAITumla "AIT$stpg" "EAITstpg"))
(if (and (not (tblsearch "layer" "EAIT3D")) (tblsearch "layer" "AIT$3D")) (command EAITumb EAITumla "AIT$3D" "EAIT3D"))
(if (and (not (tblsearch "layer" "EAIT3D_BEM"))(tblsearch "layer" "AIT$3D_BEM"))(command EAITumb EAITumla "AIT$3D_BEM" "EAIT3D_BEM"))
(if (and (not (tblsearch "layer" "EAIT3D_DET"))(tblsearch "layer" "AIT$3D_DET"))(command EAITumb EAITumla "AIT$3D_DET" "EAIT3D_DET"))
(if (and (not (tblsearch "layer" "EAIT3D_HLF"))(tblsearch "layer" "AIT$3D_HLF"))(command EAITumb EAITumla "AIT$3D_HLF" "EAIT3D_HLF"))
;Linienarten
(if (and (not(tblsearch "ltype" "EAITstrich")) (tblsearch "ltype""AIT$strich")) (command EAITumb EAITumlt "AIT$strich" "EAITstrich"))
(if (and (not(tblsearch "ltype" "EAITstrichgr")) (tblsearch "ltype""AIT$strichgr")) (command EAITumb EAITumlt "AIT$strichgr" "EAITstrichgr"))
(if (and (not(tblsearch "ltype" "EAITstrichpunkt"))(tblsearch "ltype""AIT$strichpunkt"))(command EAITumb EAITumlt "AIT$strichpunkt" "EAITstrichpunkt"))
(if (and (not(tblsearch "ltype" "EAITstrichpgr")) (tblsearch "ltype""AIT$strichpgr")) (command EAITumb EAITumlt "AIT$strichpgr" "EAITstrichpgr"))
);progn
);if
;Linienarten
(if (not (tblsearch "ltype" "EAITstrich")) (command EAITltp EAITlla "EAITstrich" (strcat EAITpfm "EAitem") ""))
(if (not (tblsearch "ltype" "EAITstrichgr")) (command EAITltp EAITlla "EAITstrichgr" (strcat EAITpfm "EAitem") ""))
(if (not (tblsearch "ltype" "EAITstrichpunkt")) (command EAITltp EAITlla "EAITstrichpunkt" (strcat EAITpfm "EAitem") ""))
(if (not (tblsearch "ltype" "EAITstrichpgr")) (command EAITltp EAITlla "EAITstrichpgr" (strcat EAITpfm "EAitem") ""))
;Std-Farben
(setq AIT-fstd '(7 2 3 3 4 4 4 6 6 7 3 2 2 2 2 2 2 3 3 2)
AIT-da (open (strcat EAITpfm "color.dat") "r")
)
;Benutzer-Einstellung einlesen
(if AIT-da
(progn
(setq AIT-n 0 AIT-ze (read-line AIT-da) ait-fneu nil)
(while (and (< AIT-n 22)(/= AIT-ze nil))
(setq AIT-far (atoi (substr AIT-ze 1 3)))
(if (or (= AIT-far nil)(<= AIT-far 0)(> AIT-far 256)) (setq AIT-far (nth AIT-n AIT-fstd)) )
(setq AIT-fneu (cons AIT-far AIT-fneu))
(setq AIT-n (1+ AIT-n) AIT-ze (read-line AIT-da) )
)
(setq AIT-fneu (reverse AIT-fneu))
(close AIT-da)
)
(setq AIT-fneu AIT-fstd)
)
;Layer
(setq EAITal (getvar "CLAYER"))
(if (not (tblsearch "layer" "EAIT50")) (command EAITlay EAITlma "EAIT50" EAITlfa (nth 0 AIT-fneu) "" ""))
(if (not (tblsearch "layer" "EAIT35")) (command EAITlay EAITlma "EAIT35" EAITlfa (nth 1 AIT-fneu) "" ""))
(if (not (tblsearch "layer" "EAIT25")) (command EAITlay EAITlma "EAIT25" EAITlfa (nth 2 AIT-fneu) "" ""))
(if (not (tblsearch "layer" "EAIThilfe")) (command EAITlay EAITlma "EAIThilfe" EAITlfa (nth 3 AIT-fneu) "" ""))
(if (not (tblsearch "layer" "EAITinfo")) (command EAITlay EAITlma "EAITinfo" EAITlfa (nth 4 AIT-fneu) "" ""))
(if (not (tblsearch "layer" "EAITstp")) (command EAITlay EAITlma "EAITstp" EAITlfa (nth 5 AIT-fneu) "" EAITlty "EAITstrichpunkt" "" ""))
(if (not (tblsearch "layer" "EAITstpg")) (command EAITlay EAITlma "EAITstpg" EAITlfa (nth 6 AIT-fneu) "" EAITlty "EAITstrichpgr" "" ""))
(if (not (tblsearch "layer" "EAITgstr")) (command EAITlay EAITlma "EAITgstr" EAITlfa (nth 7 AIT-fneu) "" EAITlty "EAITstrich" "" ""))
(if (not (tblsearch "layer" "EAITgstrg")) (command EAITlay EAITlma "EAITgstrg" EAITlfa (nth 8 AIT-fneu) "" EAITlty "EAITstrichgr" "" ""))
(if (not (tblsearch "layer" "EAIT3d")) (command EAITlay EAITlma "EAIT3d" EAITlfa (nth 9 AIT-fneu) "" ""))
(if (not (tblsearch "layer" "EAIT3d_hlf"))(command EAITlay EAITlma "EAIT3d_hlf" EAITlfa (nth 10 AIT-fneu) "" ""))
(if (not (tblsearch "layer" "EAIT3d_det"))(command EAITlay EAITlma "EAIT3d_det" EAITlfa (nth 11 AIT-fneu) "" ""))
(if (not (tblsearch "layer" "EAIT3d_bem"))(command EAITlay EAITlma "EAIT3d_bem" EAITlfa (nth 12 AIT-fneu) "" ""))
(if (not (tblsearch "layer" "EAITdim_front"))(command EAITlay EAITlma "EAITdim_front" EAITlfa (nth 13 AIT-fneu) "" ""))
(if (not (tblsearch "layer" "EAITdim_side"))(command EAITlay EAITlma "EAITdim_side" EAITlfa (nth 14 AIT-fneu) "" ""))
(if (not (tblsearch "layer" "EAITdim_top"))(command EAITlay EAITlma "EAITdim_top" EAITlfa (nth 15 AIT-fneu) "" ""))
(if (not (tblsearch "layer" "EAITdim_var"))(command EAITlay EAITlma "EAITdim_var" EAITlfa (nth 16 AIT-fneu) "" ""))
(if (not (tblsearch "layer" "EAIT3d_view"))(command EAITlay EAITlma "EAIT3d_view" EAITlfa (nth 17 AIT-fneu) "" ""))
(if (not (tblsearch "layer" "EAIT3d_vdat"))(command EAITlay EAITlma "EAIT3d_vdat" EAITlfa (nth 18 AIT-fneu) "" ""))
(setq EAITdim_CLRD (nth 19 AIT-fneu))
(setq EAITdim_CLRE (nth 20 AIT-fneu))
(setq EAITdim_CLRT (nth 21 AIT-fneu))
(command EAITlay EAITlse EAITal "" EAITlre EAITlei)
;Lokal-Variablen
(setq AIT-tx nil AIT-fstd nil AIT-fneu nil AIT-far nil
AIT-da nil AIT-n nil AIT-ze nil)
(princ)
);defun EAITset